import 'package:flutter/material.dart';

extension ExtensionTextStyle on TextStyle {
  /// 字体加粗
  TextStyle get withBold => copyWith(color: color, fontSize: fontSize, fontStyle: fontStyle, fontWeight: FontWeight.bold);

  /// 字体倾斜
  TextStyle get withItalic => copyWith(color: color, fontSize: fontSize, fontStyle: FontStyle.italic, fontWeight: fontWeight);
}
